package com.daatak.finance.calculators;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import com.daatak.finance.business.CalculatorOptions;

@Component
public class CalculatorUtil {
	@Autowired
	CalculatorI basicCalculator;

	public CalculatorI getCalculator(CalculatorObjectI calculatorObject) {
		//TODO:add check to return calculator based on the calculator type provided in calcOptions
		this.basicCalculator.setCalcObject(calculatorObject);
		return this.basicCalculator;
	}
	
	

}
